package com.jackeys.piaems.service;

import com.jackeys.piaems.entity.User;
import com.jackeys.piaems.vo.ResponseVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.FileNotFoundException;
import java.util.Date;
import java.util.List;

/**
 * @InterfaceName: UserService
 * @Description: 用户业务层接口
 * @Author: Jackeys
 * @Date: 2021-06-08 17:41
 * @Version: 1.0
 */
public interface UserService {
    //查询用户信息
    ResponseVo getUserInfByAccount(String account);

    //登陆
    ResponseVo login(String account, String password);

    //注册用户信息
    ResponseVo register(String password, String email,String securityCode);

    //修改用户密码
    ResponseVo forget(String email, String password,String securityCode);

    //发送验证码
    ResponseVo sendSecurityCode(String email);

    //上传头像
    ResponseVo uploadHeadPortrait(HttpServletRequest request, String account,MultipartFile file) throws FileNotFoundException;

    //修改用户信息
    ResponseVo modifyUserInf(String account,String name, Date birthday,String sex,  Integer age, String phone,String sign, String headPortrait);

    //登录时展示头像
    ResponseVo showHeadPortrait(String  account);
}
